/*
 * create on 2008-4-3
 * Copy right (2008)
 * HNA System All rights reserved
 */
package com.myway.dto.domain;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author nl_tan
 *
 */
public class Flight implements Serializable {
	
	private List<Segment> segments=new ArrayList<Segment>();

	/**
	 * @return the segments
	 */
	public List<Segment> getSegments() {
		return this.segments;
	}

	/**
	 * @param segments the segments to set
	 */
	public void setSegments(List<Segment> segments) {
		this.segments = segments;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		
		
		return ""+segments.size();
	}
	
	
	

}
